import cookie from 'cookie_js'


const admintoken = "admin_token"

export function getToken() {
  return cookie.get(admintoken)
}

export function setToken(value) {
  cookie.set(admintoken,value)
}

export function removeToKen() {
  return cookie.remove(admintoken)
}

export function setUserName(value) {
  return cookie.set('username',value)
}

export function removeUserName(value) {
  return cookie.remove('username')
}

export function getUserName() {
  return cookie.get('username')
}

